<!-- 限售解禁 -->
<template>
  <div class="table w1021">
    <div class="tableTh tableTr flex">
      <span class="tableTd w220 high">预计上市日</span>
      <span class="tableTd w220 high">解禁数量（万股）</span>
      <span class="tableTd w220 high">占当前总股本比例（％）</span>
      <span class="tableTd w220 high">解禁股市值（万元）</span>
      <span class="tableTd w220 high">最新收盘价（元）</span>
    </div>
    <div class="tableTr tableBody top flex" v-for="(item,index) in data" :key="index">
      <span class="orange tableTd w220 high">{{item.tradeDate|filterVal}}</span>
      <span class="orange tableTd w220 high">{{item.totLtdVol|filterVal("no")}}</span>
      <span class="orange tableTd w220 high">{{item.shrPct|filterVal("no")}}</span>
      <span class="orange tableTd w220 high">{{item.stkVal|filterVal("no")}}</span>
      <span class="orange tableTd w220 high">{{item.tClose|filterVal("no")}}</span>
    </div>
    <div class="tableNone orange w1021 top" v-if="data.length==0">暂无数据</div>
  </div>
</template>

<script>
import { numberNo, number } from "../../script/api";
export default {
  data() {
    return {};
  },
  props: ["data"],
  filters: {
    filterVal(ops, num) {
      if (num == "wy") {
        return number(ops, num, 10000);
      }
      if (num == "no") {
        return numberNo(ops, num);
      }
      return ops ? ops : "--";
    }
  },
  components: {},
  computed: {},
  mounted() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>